//package com.qk.management.task;
//
//import com.qk.management.service.ReportService;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
//@Component
//@Slf4j
//public class CacheWarmerTask {
//    @Autowired
//    private ReportService reportService;
//
//    // 每天0:35执行预热
//    @Scheduled(cron = "0 35 0 * * ?")
//    public void warmUpDaily() {
//        try {
//            log.info("开始缓存预热...");
//            reportService.queryOverview();
//            log.info("缓存预热完成");
//        }catch (Exception e){
//            log.error("缓存预热失败：{}", e.getMessage());
//        }
//    }
//}